<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo $this->_var['siteinfo']['title']; ?>-<?php echo $this->_var['city']; ?>分站</title>
<link rel="alternate" title="订阅更新" type="application/rss+xml" />
<link rel="stylesheet" href="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/meituan.css"
	type="text/css" media="screen" charset="utf-8" />
<style type="text/css">
.nwring {
	color: #FF0000
}
</style>
<script src="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/js/jquery-chekform.js"
	type="text/javascript"></script>

<script language="javascript">
$(function(){

var nameflag=0;
var mailflag=0;
$("#fm_name").blur(function(){
var chkval=$("#fm_name").val();
	 $.ajax({       
   //   type: "POST",
      url: "ajax/do.php",
      data: "action=chkmembername&chkval="+chkval,
      success: function(msg){
          if(msg=='true'){
   		      $("#username-hint").show();
              $("#username-hint").html('<span class="nwring">用户名已存在！</span>');
        	  $("#signup-submit").attr("disabled","disabled");
			  nameflag=1;
        } else{
		
		 if(nameflag==1){
	              if(mailflag==0){
		         	$("#signup-submit").removeAttr("disabled");
		          }else{
				    $("#signup-submit").attr("disabled","disabled");
				  }
				nameflag=0;
				$("#username-hint").hide();
		}
		
		   }
          }
       });
});

$("#fm_mail").blur(function(){
var chkmail=$("#fm_mail").val();
$.ajax({       
//   type: "POST",
 url: "ajax/do.php",
 data: "action=chkmembermail&chkmail="+chkmail,
 success: function(msg){
     if(msg=='true'){
	  $("#email-hint").show();
      $("#email-hint").html('<span  class="nwring">用户邮件已存在！</span>');
   	  $("#signup-submit").attr("disabled","disabled");
      mailflag=1;
   } else{
	  if(mailflag==1){
	              if(nameflag==0){
		         	$("#signup-submit").removeAttr("disabled");
					
		          }else{
				  $("#signup-submit").attr("disabled","disabled");
				  }
				mailflag=0;
				$("#email-hint").hide();
		}
		
	   }      
     }
  });
});
//*/

})

</script>

<meta name="description" content="<?php echo $this->_var['city']; ?>分站-<?php echo $this->_var['siteinfo']['discretion']; ?>" />
<meta name="keywords" content="<?php echo $this->_var['city']; ?>分站-<?php echo $this->_var['siteinfo']['keywords']; ?>" />
</head>
<body class="bg-alt bg-newbie">

<div id="hdw">
<div id="hd"><?php echo $this->fetch('head.htm'); ?></div>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">

<div id="signup">
<div id="content" class="signup-box">
<div class="box">
<div class="box-top"></div>
<div class="box-content">
<div class="head">
<h2>注册</h2>
<span>&nbsp;或者 <a href="do.php">登录</a></span></div>
<div class="sect">
<form id="signup-user-form" method="post" action="">

<div class="field city"><label id="enter-address-city-label"
	for="signup-city">所在城市</label>
<?php echo $this->html_select(array('options'=>$this->_var['citylist'],'name'=>'fm_city','id'=>'fm_city')); ?>

<p class="enter-city" style="display: none"><input
	id="enter-address-city" name="cityname" class="f-text f-cityname"
	type="text" value="" /></p>
</div>

<div class="field email"><label >Email</label>
<input type="text" size="30" name="fm_mail" id="fm_mail" class="f-text"
	value="" /> <span id="email-hint">&nbsp;</span> <span class="hint">登录及找回密码用，不会公开</span>
</div>

<div class="field email"><label >手机</label>
<input type="text" size="30" name="fm_tel" id="fm_tel" class="f-text"
	value="" /> <span id="tel-hint">&nbsp;</span> <span class="hint">收取优惠信息，不会公开</span>
</div>


<div class="field username"><label >用户名</label>
<input type="text" size="30" name="fm_name" id="fm_name" class="f-text"
	value="" /> <span id="username-hint">&nbsp;</span> <span class="hint">4-16个字符，一个汉字为两个字符</span></div>
<div class="field password"><label>密码</label>
<input type="password" size="30" name="fm_pass" id="fm_pass"
	class="f-text" /> <span id="password-hint">&nbsp;</span> <span
	class="hint">最少 4 个字符</span></div>
<div class="field password"><label >确认密码</label>
<input type="password" size="30" name="fm_pass2" id="fm_pass2"
	class="f-text" /> <span id="password2-hint">&nbsp;</span></div>

<div class="field subscribe"><input type="checkbox" value="Y"
	name="fm_subscribe" id="fm_subscribe" class="f-check" checked="checked" />
<label for="subscribe">订阅每日最新团购信息</label></div>
<div class="clear"></div>

<div class="act"><input type="submit" value="注册" name="commit"
	id="signup-submit" class="formbutton" /> <input type="hidden"
	name="action" value="reg" /></div>
</form>
</div>
</div>
<div class="box-bottom"></div>
</div>
</div>
<div id="sidebar">
<div class="sbox side-box">
<div class="sbox-top"></div>
<div class="sbox-content">
<div class="side-tip">
<h2>已有美团账户？</h2>
<p>请直接<a href="do.php">登录</a>。</p>
</div>
</div>
<div class="sbox-bottom"></div>
</div>
<!-- 
        <div class="sbox-white side-box">
            <div class="sbox-top"></div>
            <div class="sbox-content">
                <div class="tip kaixin">
                    <h3>开心网账号也可以登录美团</h3>
                    <p>
                        <a class="btn" id="kx001_btn_login" ></a>
                    </p>
                </div>
            </div>
            <div class="sbox-bottom"></div>
        </div>
        
        --></div>
</div>
</div>
<!-- bd end --></div>
<!-- bdw end -->


<?php echo $this->fetch('foot.htm'); ?>


<!-- doc end -->

</body>
</html>
